import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/standard_home_target_cert_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/standard_home_target_cert_entity.g.dart';

@JsonSerializable()
class StandardHomeTargetCertEntity {

	StandardHomeTargetCertEntity();

	factory StandardHomeTargetCertEntity.fromJson(Map<String, dynamic> json) => $StandardHomeTargetCertEntityFromJson(json);
	int? enterpriseSum;
	int? deviceSum;
	int? personnelSum;
	List<StandardHomeTargetCertDeviceMap>? deviceMap;
	List<StandardHomeTargetCertPersonnelMap>? personnelMap;

	Map<String, dynamic> toJson() => $StandardHomeTargetCertEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StandardHomeTargetCertDeviceMap {

	StandardHomeTargetCertDeviceMap();

	factory StandardHomeTargetCertDeviceMap.fromJson(Map<String, dynamic> json) => $StandardHomeTargetCertDeviceMapFromJson(json);
	String? name;
	int? value;

	Map<String, dynamic> toJson() => $StandardHomeTargetCertDeviceMapToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class StandardHomeTargetCertPersonnelMap {

	StandardHomeTargetCertPersonnelMap();

	factory StandardHomeTargetCertPersonnelMap.fromJson(Map<String, dynamic> json) => $StandardHomeTargetCertPersonnelMapFromJson(json);
	String? name;
	int? value;

	Map<String, dynamic> toJson() => $StandardHomeTargetCertPersonnelMapToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
